import axios from 'axios';

// 删除操作按钮
let remove = (operation_id, params) => axios.delete(`/operation/${operation_id}`, { params });

// 更新操作
let update = (operation_id, data) => axios.put(`/operation/${operation_id}`, data);

// 添加新的操作按钮
let add = (data) => axios.post('/operation', data);

// 获取操作按钮列表
let list = (params) => axios.get('/operation/list', { params });

// 让函数能在别的页面用，要export
export default {
	remove,
	update,
	add,
	list,
}
